<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>测试bopomofo.js多音字</title>
	</head>
	<body>
	</body>
	<script type="text/javascript" src="../libs/pinyins.js" ></script>
	<script type="text/javascript" src="../libs/polyphones.js" ></script>
	<script type="text/javascript" src="../bopomofo.js" ></script>
	<script type="text/javascript" src="../libs/jsunit.js" ></script>
	<script>
		assertEquals('chóng qìng', pinyin('重庆', 0, false, false, ' '));
		assertEquals('zhòng dà', pinyin('重大',  0, false, false, ' '));
		assertEquals('chóng xīn', pinyin('重新',  0, false, false, ' '));
		assertEquals('cān tiān dà shù', pinyin('参天大树',  0, false, false, ' '));
		assertEquals('cēn cī bù qí', pinyin('参差不齐',  0, false, false, ' '));
		assertEquals('bù gòng dài tiān', pinyin('不共戴天',  0, false, false, ' '));
		assertEquals('huàn nàn yǔ gòng de xiōng dì', pinyin('患难与共的兄弟',  0, false, false, ' '));
	</script>
</html>
